package com.kdgc.power.fw.controller;

import com.kdgc.power.fw.service.ChessService;
import com.kdgc.power.fw.util.FenUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("chess")
public class ChessController {
    @Resource
    private ChessService chessService;


    @RequestMapping("fenToSvg")
    public  String fenToSvg(String fen) throws IOException {

        return chessService.fenToSvg(fen);
    }
}